package com.kaifamiao.convert;

import java.time.ZoneId;
import java.util.Iterator;
import java.util.Set;

public class ZoneIdTest {
	
	public static void main(String[] args) {
		
		ZoneId defaultZone = ZoneId.systemDefault();
		System.out.println(defaultZone);
		
		ZoneId zone = ZoneId.of("Europe/Nicosia");
		System.out.println(zone);
		
		Set<String> zoneIds = ZoneId.getAvailableZoneIds();
		for (Iterator<String> itor = zoneIds.iterator(); itor.hasNext();) {
			String zoneId = itor.next();
			System.out.println(zoneId);
		}
		
	}
	
}
